//
// Created by postgres on 4/17/17.
//

#ifndef MYDATASTRUCTURES_SEQLIST_H
#define MYDATASTRUCTURES_SEQLIST_H
#include "../common/common.h"

typedef int ElemType;        /* ElemType类型根据实际情况而定，这里假设为int */
typedef struct SeqList {
    ElemType list[MAXSIZE];        /* 数组，存储数据元素 */
    int length;                                /* 线性表当前长度 */
} SeqList;
Status InitList(SeqList *L);
Status ListEmpty(SeqList L);
Status ClearList(SeqList *L);
int ListLength(SeqList L);
Status GetElem(SeqList L, int i, ElemType *e);
Status LocateElem(SeqList L, ElemType e);
Status InsertList(SeqList *L, int i, ElemType e);
Status add(SeqList *L,ElemType e);
Status ListDelete(SeqList *L, int i, ElemType *e);
        void SeqList_test();
//Status InsertList(SeqList L,int i,ElemType e);
#endif //MYDATASTRUCTURES_SEQLIST_H
